<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterCouponOrderSupplierId extends Migrator
{
    public function up()
    {
        $this->table('coupon_order')
            ->addColumn('supplier_code',"string",['limit' => 20,'default' =>'','comment'=>"供应商代号"])//可能测试把供应商删了又新增了supplier_id 就不一样了
            ->save();
    }

    public function down()
    {
        $this->table('coupon_order')
            ->removeColumn('supplier_code');
    }
}
